#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPainter>
#include <QEvent>
#include <QMouseEvent>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
private:
    bool event(QEvent *event)override;
private:
    Ui::Widget *ui;
    QVector<QVector<QPoint>> points_;
    QVector<QPoint> point_;
};
#endif // WIDGET_H
